﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FlagItem.aspx.cs" Inherits="Manage_System_FlagItem" %>
<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
    
</head>
<body >
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <div class="mycolumn">
            <div class="columntitle"><%=ActName %>模块</div>
        <form id="myForm" name="myForm" method="post" action="?act=<%=ActFlag %>" onsubmit="return validator(this)" >
            <table cellpadding="3" width="98%" align="center">
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模块类别" onclick="helpInf(this)" />
                        模块类别：</td>
                    <td align="left" class="tdselect">
                        <select name="FlagType" onchange="changeFlagType(this)">
                            <option value="0" <%=ModelAdminFlag.FlagType==0?"selected":"" %>>系统</option>
                            <option value="1" <%=ModelAdminFlag.FlagType==1?"selected":"" %>>站点</option>
                            <option value="2" <%=ModelAdminFlag.FlagType==2?"selected":"" %>>商户</option>
                            <option value="5" <%=ModelAdminFlag.FlagType==5?"selected":"" %>>一网通</option>
                        </select>
                    </td>
                </tr>  
                
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模块类别" onclick="helpInf(this)" />
                        父级模块：</td>
                    <td align="left" class="tdselect">
                        <div id="SelParentID">
                            <select name="ParentID">
                            <option >--请选择父级模块--</option>
                                <%=GetSelectP(0, ModelAdminFlag.FlagType, ModelAdminFlag.ParentID)%>
                            </select>
                        </div>
                    </td>
                </tr> 
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模型名称" onclick="helpInf(this)" />
                        模块名称：</td>
                    <td align="left">
                        <input  name="FlagName" type="text" value="<%=ModelAdminFlag.FlagName %>" valid="required" errmsg="*请输入模型名称" />
                    </td>
                </tr>
                               
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模块标记" onclick="helpInf(this)" />
                        模块标记：</td>
                    <td align="left">
                        <input id="Flag" name="Flag" type="text" value="<%=ModelAdminFlag.Flag %>" valid="required" errmsg="*请输入项目名称" />
                    </td>
                </tr>
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="程序地址" onclick="helpInf(this)" />
                        程序地址：</td>
                    <td align="left">
                        <input id="AppUrl" name="AppUrl" type="text" value="<%=ModelAdminFlag.AppUrl %>"  />
                    </td>
                </tr>                
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="图标" onclick="helpInf(this)" />
                        图标：</td>
                    <td align="left">
                        <input id="Icon" name="Icon" type="text" value="<%=ModelAdminFlag.Icon %>"  />
                    </td>
                </tr>
                
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模块行为" onclick="helpInf(this)" />
                        模块行为：</td>
                    <td align="left">
                        <input id="FlagAction" name="FlagAction" type="text" value="<%=ModelAdminFlag.FlagAction%>" />
                    </td>
                </tr>
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="模块分组" onclick="helpInf(this)" />
                        模块分组：</td>
                    <td align="left">
                        <input type="radio" value="1" name="FlagGroup" style="width:25px;" checked="checked" /> 默认
                        <input type="radio" value="2" name="FlagGroup" style="width:25px;" <%=ModelAdminFlag.FlagGroup==2 ? "checked" : "" %> /> 附加
                    </td>
                </tr>
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="是否导航" onclick="helpInf(this)" />
                        是否导航：</td>
                    <td align="left" class="tdcheckbox">
                        <input id="IsNav" name="IsNav" type="checkbox" value="1" <%= ModelAdminFlag.IsNav==1?"checked":""%> />
                    </td>
                </tr>                
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="是否展开子模块" onclick="helpInf(this)" />
                        展开子模块：</td>
                    <td align="left" class="tdcheckbox">
                        <input id="IsOpen" name="IsOpen" type="checkbox"  value="1" <%= ModelAdminFlag.IsOpen?"checked":""%> />
                    </td>
                </tr>
                
                <tr>
                    <td align="left" width="100">
                        <img src="../pic/icons/help.gif" alt="排序" onclick="helpInf(this)" />
                        排序：</td>
                    <td align="left" >
                        <input type="text" name="OrderID"   value="<%=ModelAdminFlag.OrderID==0?BllAdminFlag.GetMaxOrderID():ModelAdminFlag.OrderID%>" valid="required|isInt" errmsg="请输入排序|排序只能为一个整数" />
                    </td>
                </tr>
                
                <tr>
                    <td colspan="2" align="center" class="tdbutton">
                        <input type="submit" value="确 定"  />&nbsp;&nbsp;
                        <input type="button" value="取 消" onclick="window.parent.ymPrompt.doHandler('close');"/>
                        <input type="hidden" value="<%=ModelAdminFlag.ID %>" name="ID" />
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>
